package com.hjg.hjgglide;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.hjg.baseglide.BitmapRequest;
import com.hjg.baseglide.HJGGlide;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        ImageView imageView = findViewById(R.id.imageView);


        HJGGlide.with(this)
                .setUrl("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fztd00.photos.bdimg.com%2Fztd%2Fw%3D700%3Bq%3D50%2Fsign%3D9660692fdb1b0ef46ce89a5eedff20e7%2F1b4c510fd9f9d72a52fb311cdd2a2834349bbb17.jpg&refer=http%3A%2F%2Fztd00.photos.bdimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1629355847&t=98959c7cd5fb97f0c26da0b7250f05a0")
                .into(imageView);
        HJGGlide.with(this)
                .setUrl("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F2020-04-14%2F5e95539df2ade.jpg&refer=http%3A%2F%2Fpic1.win4000.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1629355847&t=c0bf3f8ea67e96ce15e79e18fef27605")
                .into(imageView);
    }
}